import request from '@/utils/request'

// 查询特材外发录入列表
export function listTcwf(query) {
  return request({
    url: '/jhc/tcwf/list',
    method: 'get',
    params: query
  })
}

// 查询特材外发录入详细
export function getTcwf(cDate) {
  return request({
    url: '/jhc/tcwf/' + cDate,
    method: 'get'
  })
}

// 新增特材外发录入
export function addTcwf(data) {
  return request({
    url: '/jhc/tcwf',
    method: 'post',
    data: data
  })
}

// 修改特材外发录入
export function updateTcwf(data) {
  return request({
    url: '/jhc/tcwf',
    method: 'put',
    data: data
  })
}

// 删除特材外发录入
export function delTcwf(cDate) {
  return request({
    url: '/jhc/tcwf/' + cDate,
    method: 'delete'
  })
}
